@import "./common.scss";

.hot{
  .container{
    .row{ 
      display: flex;
      .col-xs-5,.col-sm-4,.col-md-4,.col-lg-4{
        padding-right: 0;
        padding-left: 0;
        .hot-left{
          // position: relative;
          // padding-bottom: 20px;
          .flag{
            position: relative;
            margin-left: 12px;
            width: 40px;
            height: 87px;
            background-color:#e14738;
            color:#ffffff;
            font-size: 20px;
            writing-mode:vertical-lr;
            text-align: center;
            line-height: 40px;
            letter-spacing: 8px;
            
            &:before{
              position: absolute;
              bottom: -13px;
              content: '';
              display: block;
              width: 0;
              height: 0;
              border-left: 20px solid #e14738;
              border-right: 20px solid #e14738;
              border-bottom: 13px solid transparent;
            }
          }
          img{
            position: relative;
            bottom: 45px;
            width: 100%;
          }
        }
      }
      .col-xs-7,.col-sm-8,.col-md-8,.col-lg-8{
        padding-left: 0;
        padding-right: 19px;
        .hot-txt{
          margin-top: 33px;
          p{
            margin: 0;
          }
          
          // padding-right: 19px;
          text-align: right;
  
          .hot-title{
            font-size: 30px;
            color: #2a2a2a;
            // margin-bottom: 18px;
          }
          .hot-text{
            margin-bottom: 30px;
            color: #898989;
            font-size: 12px;
            
            line-height: 30px;
            text-indent: 1em
          }
        }
        .hot-img{
          display: flex;
          flex-wrap: wrap;
          flex-direction: row-reverse;
          justify-content: space-between;
          // align-content:space-between;
          .item{
            width: 47%;
            // height: 133px;
            img{
              width: 100%;
              border-radius: 8px;
            }
          }
          .item:nth-child(2),.item:nth-child(4){
            margin-right:0;
          }
          .item:nth-child(3),.item:nth-child(4){
            margin-bottom:0;
          }

        }
      }
    }
  }
  .container:nth-child(2){
    margin-top: 62px;
    margin-bottom: 123px;

    .row{
      .col-xs-5,.col-sm-4.col-md-4,.col-lg-4{
        order: 2;
        // padding-left: 0;
        img{
          position: relative;
          top: 100px;
          width: 100%;
         
        }

      }

      .col-xs-7,.col-sm-8,.col-md-8,.col-lg-8{
        padding-right: 0;
        padding-left: 19px;
        .hot-txt{
          text-align: left;
          margin-top: 0;
        }
        .hot-img{
          flex-direction: row;

          .item:nth-child(1),.item:nth-child(3){
            margin-left: 0;
            // margin-right: 30px;
          }
        }
      }

      
    }
    
  }
}

.case{
  .container{
    p{
      font-size: 36px;
      color: #010101;
    }
    .row{
      .case-wrapper{
        .case-box{
          .case-item{
            img{
              width: 100%;
              border-radius: 10px;
            }
            p{
              font-size: 14px;
              color: #2a2a2a;
              text-align: center;
              margin:12px 0 43px;
            }
          }
        }
      }
    }
  }
}



@media screen and (max-width:768px){
  .hot{
    .container{
     .row{
      .col-xs-1{
        .hot-left{
          .flag{
            height: 64px;
            font-size: 15px;
          }

        }
      }
      .col-sm-8,.col-xs-11{
        .hot-txt{
          .hot-title{
            font-size: 20px;
          }
          .hot-text{
            line-height: 17px;
            margin-bottom: 10px;
          }
          .hot-img{
            align-content:space-around;
           
          }
        }
      }
       
     }
    }
    .container:nth-child(2){
      margin-top: 32px;
    }
  }
  .case{
    .container{
      .row{
        .case-wrapper{
            &:last-child {
              padding: 0;
              .case-box {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                .case-item {
                  flex: 0 0 50%;
                  padding: 0 15px;
                  p{
                    margin:5px 0 18px;
                  }
                }
              }
             
            }
          
        }
      }
    }
  }
} 

@media screen and (max-width:992px){
  .hot{
    .container{
      .row{
        .col-md-8{
          .hot-txt{
            .hot-img{
              .item:nth-child(1),.item:nth-child(2){
                margin-bottom: 20px;
              }
            }
          }
        }
      }
    }
    .container:nth-child(2){
      margin-top: 48px;
    }
  }
  .case{
    .container{
      .row{
        .case-wrapper{
          .case-box{
            .case-item{
              p{
                margin:10px 0 25px;
              }
            }
          }
        }
      }
    }
  }

}

@media screen and (min-width:768px) and (max-width:992px) {
  .hot{
    .container{
     .row{
      .col-xs-1{
        .hot-left{
          .flag{
            height: 64px;
            font-size: 15px;
          }
        }
      }
      .col-xs-11{
        .hot-txt{
          .hot-title{
            font-size: 25px;
            
          }
          .hot-text{
            line-height: 20px;
            margin-bottom: 15px;
          }
        }
      }
      .col-sm-8{
        .hot-txt{
          .hot-img{
            height: 230px;
            align-content:space-between;
          }
        }
      }
       
     }
    }
  }
  .case{
    .container{
      .row{
        .case-wrapper{
            &:last-child {
              padding: 0;
              .case-box {
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                .case-item {
                  flex: 0 0 50%;
                  padding: 0 15px;
                }
              }
             
            }
          
        }
      }
    }
  }
}

@media screen and (min-width:992px){
  .hot{
    .container{
      .row{
        .img-box{
          .hot-img{
            height: 300px;
            justify-content: space-between;
          }
  
        }
      }
    }
    .container:nth-child(2){
      .row{
        .img-box{
          .hot-img{
            height: 300px;
            justify-content: space-between;
          }
  
        }
      }
    }
  }

  
  
}










  



